package mybag5;

public class Myrunnable implements Runnable{
    int tickets=20;
    @Override
    public void run() {
        for(int i=20;i>0;i--){
            System.out.println(Thread.currentThread().getName()+"还剩"+tickets+"张票");
            tickets--;
        }
    }
}
